package gzconfigcenter

import (
	"strings"
)

// 切割字符串为切片，忽略书组中的空字符串
func SplitStringIgnoreEmpty(s string, sep string) []string {
	parts := strings.Split(s, sep)
	var result []string = make([]string, 0)
	for _, part := range parts {
		if part != "" {
			result = append(result, part)
		}
	}
	return result
}
